<script type="text/ng-template" id="template-user-add.html">
    <h3>
      <a class="btn btn-default btn-sm" href="#/user/all" title="返回用户列表"><i class="fa fa-angle-left"></i> 返回</a>
       添加用户
    </h3>

    <div class="container-fluid">
      <div class="col-xs-12 col-sm-8">
        <form class="form-horizontal">
          <div class="form-group">
            <label class="col-sm-2 control-label">用户名</label>
            <div class="col-sm-10">
              <input type="text" class="form-control" placeholder="用户名由英文字母、下划线、数字组成">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label">密码</label>
            <div class="col-sm-10">
              <input type="text" class="form-control" placeholder="密码长度不少于6位">
            </div>
          </div>
          <div class="form-group">
            <div class="col-sm-offset-2 col-sm-2">
              <button class="btn btn-success" ng-click="addUser()">完成</button>
            </div>
            <div class="col-sm-2">
              <a class="btn btn-default" href="#/user/all">取消</a>
            </div>
          </div>
        </form>
      </div>
    </div>
</script>